﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyServer.Common
{
    /// <summary>
    /// 为正在接收的链接提供信息储存
    /// </summary>
    public class RecivingConnectInfo
    {
        /// <summary>
        /// 表示关联的链接
        /// </summary>
        public object Tag { get; private set; }
        /// <summary>
        /// 表示该链接在接收器中正在接收的数据包数量
        /// </summary>
        public int RecivingCount { get; set; }
        /// <summary>
        /// 根据指定的链接创建连接信息实力
        /// </summary>
        /// <param name="tag"></param>
        public RecivingConnectInfo(object tag)
        {
            this.Tag = tag;
            this.RecivingCount = 1;
        }
    }
}
